package com.peanut.bosskg.service.other.sign;

import com.peanut.bosskg.entity.ResponseMessageVO;
import com.peanut.bosskg.entity.sign.ApiSignH5InfoDTO;
import com.peanut.bosskg.enums.FunCodeEnum;
import com.peanut.bosskg.service.BaseService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author shikaibin
 * @date 2023/5/14 2:58 下午
 */
@Service
@Slf4j
public class ApiSignH5InfoService  extends BaseService {

    /**
     * API-H5用户签约信息保存接口
     * @param funCodeEnum
     * @param apiSignH5InfoDTO 请求参数
     * @return 内嵌签约页面访问地址
     * @throws Exception
     */
    public String doBusiness(FunCodeEnum funCodeEnum, ApiSignH5InfoDTO apiSignH5InfoDTO) throws Exception {
        log.info("API-H5用户签约信息保存接口开始:{}，{}", funCodeEnum, apiSignH5InfoDTO);
        ResponseMessageVO responseMessage = applyYouFuByHttpPost(funCodeEnum, apiSignH5InfoDTO);
        String resMsg = responseMessage.getResMsg();
        log.info("API-H5用户签约信息保存接口结束:{}", resMsg);
        return resMsg;
    }


}
